﻿Type=Activity
Version=2.71
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.

	Dim btnReturn As Button
	Dim btnOK As Button
	Dim edtZYH As EditText
End Sub

Sub Activity_Create(FirstTime As Boolean)
	Activity.LoadLayout("FormBHSearch")
	Activity.Title = "查找"
	
	edtZYH.RequestFocus
	
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub btnReturn_Click
	BHList.V_ZYH = ""
	StartActivity("BHList") 
End Sub

Sub btnOK_Click
	Dim sZyh As String
	sZyh = edtZYH.Text.Trim
	
	If sZyh ="" Then	
		ToastMessageShow("请输入住院号/门诊号", False)	
		edtZYH.RequestFocus
		Return
	End If
	
	BHList.V_ZYH = sZyh
	StartActivity("BHList")	
	
End Sub